<?php /* Smarty version Smarty-3.0.9, created on 2013-12-04 06:30:23
         compiled from "templates\index.tpl" */ ?>
<?php /*%%SmartyHeaderCode:28047529ebdef2e90f2-48970194%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'f90be83b235fb03cc225b11607032e9ddd415899' => 
    array (
      0 => 'templates\\index.tpl',
      1 => 1386134605,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '28047529ebdef2e90f2-48970194',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
 
<script src="<?php echo $_smarty_tpl->getVariable('gvar')->value['l_global'];?>
js/index.js"></script>
 

<?php if (isset($_SESSION['usuario'])&&$_GET['option']!='logout'){?>
<div class="square">
    <div id="myCarousel" class="carousel slide">
            <ol class="carousel-indicators">
            <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
            <li data-target="#myCarousel" data-slide-to="1"></li>
            <li data-target="#myCarousel" data-slide-to="2"></li>
            </ol>
            <!-- Carousel items -->
             
            <div class="carousel-inner" id="divCarrouselInner">
                <div class="active item"><img alt="" src="<?php echo $_smarty_tpl->getVariable('gvar')->value['l_global'];?>
images/home/banner1.png"></div>
                <div class="item"><img class="overflowH" alt="" src="<?php echo $_smarty_tpl->getVariable('gvar')->value['l_global'];?>
images/home/banner2.png"></div>
                <div class="item"><img class="overflowH" alt="" src="<?php echo $_smarty_tpl->getVariable('gvar')->value['l_global'];?>
images/home/banner3.png"></div>
                <div class="item"><img class="overflowH" alt="" src="<?php echo $_smarty_tpl->getVariable('gvar')->value['l_global'];?>
images/home/banner4.png"></div>
                <div class="item"><img class="overflowH" alt="" src="<?php echo $_smarty_tpl->getVariable('gvar')->value['l_global'];?>
images/home/banner5.png"></div>
            </div>
             
            <!-- Carousel nav -->
            <a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a>
            <a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
       </div>
</div>
<?php }else{ ?>   
    
    <div id="contentFormLoginIndex">
        <div id="auxiliar2">
        <div id="labelInitSesion">Inicia sesión y acceder a la aplicación</div>
        <div id ="containerLogin">
            <div id="imagenForLoggin">

            </div>
            <div id="formularioInico">
                <form id="formularioLogin"action="<?php echo $_smarty_tpl->getVariable('gvar')->value['l_index'];?>
?option=login" method="post" name="login" class="form-horizontal">
                    <div class="control-group" id="auxiliar1">
            <!--        <a name="login"><?php echo $_smarty_tpl->getVariable('gvar')->value['n_login'];?>
</a>-->
                        <!--<label class="control-label80">User:</label>-->
                        <div class="controlsleft90">
                            <input size="18" name="username" required="required" type="text" placeholder="Usuario">
                        </div>
                    </div>
                    <div class="control-group">
                    <!--<label class="control-label80">Password:</label>-->
                    <div class="controlsleft90">
                        <input size="18" name="password" required="required" type="password" placeholder="Contraseña">
                    </div>
                    </div>
                    <div class="control-group text-center" id="buttonLoginIndex">
                        <input class="btn btn-primary" value="Iniciar Sesión" type="submit" />
                    </div>
                    <?php if (isset($_smarty_tpl->getVariable('dataError',null,true,false)->value)){?>    
                    <div class="control-group">
                        <span class="alert alert-danger"><?php echo $_smarty_tpl->getVariable('dataError')->value;?>
</span>
                        </div>
                    <?php }?>
                </form>
            </div>
        </div>
        </div>
    </div>
<?php }?>